<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/log/log.cpp 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2241064965c8d9ca993f08b926076f7d.html">log</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">log.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="log_8cpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifdef WIN32</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#   define _CRT_SECURE_NO_WARNINGS</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="log_8h.html">log.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="log_8cpp.html#a660395cdc8ba7aca573aed6c676faae8">    7</a></span>&#160;<a class="code" href="log_8cpp.html#a660395cdc8ba7aca573aed6c676faae8">USE_LIBTOOLS</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_logs.html#a4c79141c15120ce484b85954b74f1ad4">    9</a></span>&#160;<a class="code" href="class_logs.html#a4ef359cfa789abe022d24f1a9da49513">Logs::Logs</a>(<span class="keywordtype">bool</span> bOpen)</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;{</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a> = <span class="keyword">new</span> <a class="code" href="log_8h.html#a72ce0c80d97a3c76239e560d51717951">OFILE</a>;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    *<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a> = *<a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a> = 0;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="keywordflow">if</span> (bOpen) {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> str = <a class="code" href="class_logs.html#a8133cc403049290ee0c59d0c6913f463">defaultPath</a>();</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="class_logs.html#ab38dcc94f57e1eb9f9ae1a71af03cb01">fileExists</a>(str))</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;            <a class="code" href="class_logs.html#a46b30d1ff5ecce361796c176370d6e69">createFile</a>(str);</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;open(str, <a class="code" href="log_8h.html#aacd2cf60f504e45efada9aec028ee3cd">STATE</a>);</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <a class="code" href="log_8h.html#a22d5c639d832d1a925dddc0bc45736dd">USERCHS</a>(ofile);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    }</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="class_logs.html#a6a94539b15985728880fb87d4306d066">_iLogLevel</a> = <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LOG_NORMAL</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;}</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_logs.html#a4ef359cfa789abe022d24f1a9da49513">   23</a></span>&#160;<a class="code" href="class_logs.html#a4ef359cfa789abe022d24f1a9da49513">Logs::Logs</a>(<span class="keywordtype">int</span> iLevel, <a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> sPath)</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a> = <span class="keyword">new</span> <a class="code" href="log_8h.html#a72ce0c80d97a3c76239e560d51717951">OFILE</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    *<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a> = *<a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a> = 0;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="class_logs.html#a5f4e5ae5e1968fdbe03e0dcc16e59be0">reopenLog</a>(sPath);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="class_logs.html#a6a94539b15985728880fb87d4306d066">_iLogLevel</a> = iLevel;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;}</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_logs.html#a6227976848fb64144ff93587479df43d">   31</a></span>&#160;<a class="code" href="class_logs.html#a6227976848fb64144ff93587479df43d">Logs::~Logs</a>()</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>)</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;close();</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keyword">delete</span> <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    }</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_logs.html#a37c6b41e09bb7501cd54780188901232">   40</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_logs.html#a37c6b41e09bb7501cd54780188901232">Logs::Close</a>()</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;close();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;}</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_logs.html#a1011d177388f17d63028b0275825fb85">   45</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_logs.html#a1011d177388f17d63028b0275825fb85">Logs::operator ! </a>()</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">return</span> !<a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;is_open();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_logs.html#a9f438b0a141d8f3ed2b179edbe900256">   50</a></span>&#160;<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> <a class="code" href="class_logs.html#a9f438b0a141d8f3ed2b179edbe900256">Logs::getCurPath</a>()</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_logs.html#ab38dcc94f57e1eb9f9ae1a71af03cb01">   55</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_logs.html#ab38dcc94f57e1eb9f9ae1a71af03cb01">Logs::fileExists</a>(<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> sFileName)</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="log_8h.html#a321a20f839f3d9ccd0db1dc865850dc7">ACCESS</a>(sFileName, F_OK) == 0) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_logs.html#a46b30d1ff5ecce361796c176370d6e69">   61</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_logs.html#a46b30d1ff5ecce361796c176370d6e69">Logs::createFile</a>(<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> sFileName)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    FILE *file = <a class="code" href="log_8h.html#a72f79e571b60545740afac330bda9abc">CRTFILE</a>(sFileName, <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;w+&quot;</span>));</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">if</span> (!file) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    fclose(file);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;}</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_logs.html#a8133cc403049290ee0c59d0c6913f463">   69</a></span>&#160;<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> <a class="code" href="class_logs.html#a8133cc403049290ee0c59d0c6913f463">Logs::defaultPath</a>()</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    *<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a> = 0;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="log_8h.html#a981e56652da79411d62f65b03f317c3b">GETDIR</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="log_8h.html#a612428373724b228e831e6887b2304f8">DIR_MAX</a>) != <a class="code" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordtype">int</span> iLen = (<a class="code" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>)<a class="code" href="log_8h.html#a278cf415676752815cfb411cb0b32802">STRLEN</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <a class="code" href="log_8h.html#a74df3c2fd777bb47b9b7149043074119">ENDSYMBCHECK</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, iLen);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="log_8h.html#a6b5028642a5cef8d6f66086caa6f7933">STRCAT</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="class_logs.html#a05531ea72e9b39447bc1090292eb3a66">getCurDate</a>());</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="log_8h.html#a6b5028642a5cef8d6f66086caa6f7933">STRCAT</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;.log&quot;</span>));</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_logs.html#a5f4e5ae5e1968fdbe03e0dcc16e59be0">   82</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_logs.html#a5f4e5ae5e1968fdbe03e0dcc16e59be0">Logs::reopenLog</a>(<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> sPath)</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="comment">// 设置日志文件</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="log_8h.html#ac4a2548aa9c44fcd11a1d8c5273acbdb">STRCPY</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, sPath);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">int</span> iLen = (<a class="code" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>)<a class="code" href="log_8h.html#a278cf415676752815cfb411cb0b32802">STRLEN</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="log_8h.html#a74df3c2fd777bb47b9b7149043074119">ENDSYMBCHECK</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, iLen);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <a class="code" href="log_8h.html#a6b5028642a5cef8d6f66086caa6f7933">STRCAT</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="class_logs.html#a05531ea72e9b39447bc1090292eb3a66">getCurDate</a>());</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="log_8h.html#a6b5028642a5cef8d6f66086caa6f7933">STRCAT</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;.log&quot;</span>));</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;close();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="class_logs.html#ab38dcc94f57e1eb9f9ae1a71af03cb01">fileExists</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>))</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <a class="code" href="class_logs.html#a46b30d1ff5ecce361796c176370d6e69">createFile</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;open(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="log_8h.html#aacd2cf60f504e45efada9aec028ee3cd">STATE</a>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="log_8h.html#ac4a2548aa9c44fcd11a1d8c5273acbdb">STRCPY</a>(<a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>, <a class="code" href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">_sPath</a>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="log_8h.html#a22d5c639d832d1a925dddc0bc45736dd">USERCHS</a>(ofile);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;is_open();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_logs.html#afce19298fbcc8876234d17f90a630acd">  103</a></span>&#160;<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> <a class="code" href="class_logs.html#afce19298fbcc8876234d17f90a630acd">Logs::getCurTime</a>()</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;{</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    time_t ti;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">struct </span>tm *tm;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    time(&amp;ti);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    tm = gmtime(&amp;ti);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <a class="code" href="log_8h.html#a13f4eb5ea5f2c6596fc35c2fa5832640">SSTR</a> sstr;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    sstr &lt;&lt; tm-&gt;tm_hour + <a class="code" href="log_8h.html#a6348c8eb0d993def1abc48cf9cc6ffbf">CCT</a> &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;:&quot;</span>) &lt;&lt; tm-&gt;tm_min &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;:&quot;</span>) &lt;&lt; tm-&gt;tm_sec;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    sstr &gt;&gt; <a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_logs.html#a1e358b73feb2b3fcf014ef4a5581dbcb">  116</a></span>&#160;<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> <a class="code" href="class_logs.html#a1e358b73feb2b3fcf014ef4a5581dbcb">Logs::GetLevelStr</a>(<span class="keywordtype">int</span> iLevel)</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordflow">if</span> (iLevel == <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a>)</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;DEBUG&quot;</span>);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (iLevel == <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a>)</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;ERROR&quot;</span>);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (iLevel == <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LOG_NORMAL</a>)</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;NORMAL&quot;</span>);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (iLevel == <a class="code" href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a>)</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;WARNING&quot;</span>);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;UNKNOWN_LEVEL&quot;</span>);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_logs.html#a05531ea72e9b39447bc1090292eb3a66">  129</a></span>&#160;<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> <a class="code" href="class_logs.html#a05531ea72e9b39447bc1090292eb3a66">Logs::getCurDate</a>()</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;{</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    time_t ti;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">struct </span>tm *tm;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    time(&amp;ti);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    tm = gmtime(&amp;ti);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="log_8h.html#a13f4eb5ea5f2c6596fc35c2fa5832640">SSTR</a> sstr;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    sstr &lt;&lt; tm-&gt;tm_year + 1900 &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;-&quot;</span>) &lt;&lt; tm-&gt;tm_mon + 1 &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;-&quot;</span>) &lt;&lt; tm-&gt;tm_mday;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    sstr &gt;&gt; <a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">_sTime</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_logs.html#af6becc124d9f7eef58cd28b6ad7be5d0">  141</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_logs.html#af6becc124d9f7eef58cd28b6ad7be5d0">Logs::WriteLog</a>(<a class="code" href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a> szMsg, <span class="keywordtype">int</span> iSize, <span class="keywordtype">int</span> iLogLevel)</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;{</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">if</span> (iLogLevel &gt;= <a class="code" href="class_logs.html#a6a94539b15985728880fb87d4306d066">_iLogLevel</a>)</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        *<a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a> &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="charliteral">&#39;[&#39;</span>) &lt;&lt; <a class="code" href="class_logs.html#afce19298fbcc8876234d17f90a630acd">getCurTime</a>() &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="charliteral">&#39;(&#39;</span>) &lt;&lt; <a class="code" href="class_logs.html#a1e358b73feb2b3fcf014ef4a5581dbcb">GetLevelStr</a>(iLogLevel) &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="charliteral">&#39;)&#39;</span>) &lt;&lt; <a class="code" href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a>(<span class="stringliteral">&quot;] &quot;</span>);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a>-&gt;write(szMsg, iSize);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        *<a class="code" href="class_logs.html#afc057cc6ed726862c17523c42e9de605">_ofile</a> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">return</span> iSize;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="alog_8h_html_a72f79e571b60545740afac330bda9abc"><div class="ttname"><a href="log_8h.html#a72f79e571b60545740afac330bda9abc">CRTFILE</a></div><div class="ttdeci">#define CRTFILE</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00054">log.h:54</a></div></div>
<div class="ttc" id="alog_8h_html_aacd2cf60f504e45efada9aec028ee3cd"><div class="ttname"><a href="log_8h.html#aacd2cf60f504e45efada9aec028ee3cd">STATE</a></div><div class="ttdeci">#define STATE</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00050">log.h:50</a></div></div>
<div class="ttc" id="alog_8h_html_a22d5c639d832d1a925dddc0bc45736dd"><div class="ttname"><a href="log_8h.html#a22d5c639d832d1a925dddc0bc45736dd">USERCHS</a></div><div class="ttdeci">#define USERCHS(os)</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00052">log.h:52</a></div></div>
<div class="ttc" id="alog_8h_html_a598614497618c67555cca9bedcb366f0"><div class="ttname"><a href="log_8h.html#a598614497618c67555cca9bedcb366f0">CPLOGSTR</a></div><div class="ttdeci">#define CPLOGSTR</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00062">log.h:62</a></div></div>
<div class="ttc" id="aclass_logs_html_a37c6b41e09bb7501cd54780188901232"><div class="ttname"><a href="class_logs.html#a37c6b41e09bb7501cd54780188901232">Logs::Close</a></div><div class="ttdeci">void Close()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00040">log.cpp:40</a></div></div>
<div class="ttc" id="aclass_logs_html_a5f4e5ae5e1968fdbe03e0dcc16e59be0"><div class="ttname"><a href="class_logs.html#a5f4e5ae5e1968fdbe03e0dcc16e59be0">Logs::reopenLog</a></div><div class="ttdeci">bool reopenLog(CPLOGSTR sPath)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00082">log.cpp:82</a></div></div>
<div class="ttc" id="alog_8h_html_a2b6c554d561f1bde365523e4904fa8ca"><div class="ttname"><a href="log_8h.html#a2b6c554d561f1bde365523e4904fa8ca">TXT</a></div><div class="ttdeci">#define TXT(str)</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00051">log.h:51</a></div></div>
<div class="ttc" id="aclass_logs_html_afc057cc6ed726862c17523c42e9de605"><div class="ttname"><a href="class_logs.html#afc057cc6ed726862c17523c42e9de605">Logs::_ofile</a></div><div class="ttdeci">OFILE * _ofile</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00106">log.h:106</a></div></div>
<div class="ttc" id="alog_8h_html_a74df3c2fd777bb47b9b7149043074119"><div class="ttname"><a href="log_8h.html#a74df3c2fd777bb47b9b7149043074119">ENDSYMBCHECK</a></div><div class="ttdeci">#define ENDSYMBCHECK(sPath, iLen)</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00064">log.h:64</a></div></div>
<div class="ttc" id="aclass_logs_html_a6a94539b15985728880fb87d4306d066"><div class="ttname"><a href="class_logs.html#a6a94539b15985728880fb87d4306d066">Logs::_iLogLevel</a></div><div class="ttdeci">int _iLogLevel</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00105">log.h:105</a></div></div>
<div class="ttc" id="a_find_file_8h_html_a37cc1038758216808d5f75090b093c9a"><div class="ttname"><a href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a></div><div class="ttdeci">DEF_BEG_LIBTOOLS typedef int(__stdcall *_CallBackFindFile)(TCHAR *szCurPath</div><div class="ttdoc">遍历目录的回调函数</div></div>
<div class="ttc" id="alog_8h_html_a612428373724b228e831e6887b2304f8"><div class="ttname"><a href="log_8h.html#a612428373724b228e831e6887b2304f8">DIR_MAX</a></div><div class="ttdeci">#define DIR_MAX</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00031">log.h:31</a></div></div>
<div class="ttc" id="aclass_logs_html_a8133cc403049290ee0c59d0c6913f463"><div class="ttname"><a href="class_logs.html#a8133cc403049290ee0c59d0c6913f463">Logs::defaultPath</a></div><div class="ttdeci">CPLOGSTR defaultPath()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00069">log.cpp:69</a></div></div>
<div class="ttc" id="alog_8h_html_ac4a2548aa9c44fcd11a1d8c5273acbdb"><div class="ttname"><a href="log_8h.html#ac4a2548aa9c44fcd11a1d8c5273acbdb">STRCPY</a></div><div class="ttdeci">#define STRCPY</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00058">log.h:58</a></div></div>
<div class="ttc" id="aclass_logs_html_a392cb4fba0944c1a6f032cfd5b45a20e"><div class="ttname"><a href="class_logs.html#a392cb4fba0944c1a6f032cfd5b45a20e">Logs::_sPath</a></div><div class="ttdeci">LOGSTR _sPath[DIR_MAX]</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00103">log.h:103</a></div></div>
<div class="ttc" id="alog_8h_html_a278cf415676752815cfb411cb0b32802"><div class="ttname"><a href="log_8h.html#a278cf415676752815cfb411cb0b32802">STRLEN</a></div><div class="ttdeci">#define STRLEN</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00048">log.h:48</a></div></div>
<div class="ttc" id="aclass_logs_html_a46b30d1ff5ecce361796c176370d6e69"><div class="ttname"><a href="class_logs.html#a46b30d1ff5ecce361796c176370d6e69">Logs::createFile</a></div><div class="ttdeci">bool createFile(CPLOGSTR sFileName)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00061">log.cpp:61</a></div></div>
<div class="ttc" id="aclass_logs_html_a05531ea72e9b39447bc1090292eb3a66"><div class="ttname"><a href="class_logs.html#a05531ea72e9b39447bc1090292eb3a66">Logs::getCurDate</a></div><div class="ttdeci">CPLOGSTR getCurDate()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00129">log.cpp:129</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9abb2c17c44c343a8367060db4175f39ea">LOG_NORMAL</a></div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00013">logdef.h:13</a></div></div>
<div class="ttc" id="aclass_logs_html_ab38dcc94f57e1eb9f9ae1a71af03cb01"><div class="ttname"><a href="class_logs.html#ab38dcc94f57e1eb9f9ae1a71af03cb01">Logs::fileExists</a></div><div class="ttdeci">bool fileExists(CPLOGSTR sFileName)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00055">log.cpp:55</a></div></div>
<div class="ttc" id="alog_8cpp_html_a660395cdc8ba7aca573aed6c676faae8"><div class="ttname"><a href="log_8cpp.html#a660395cdc8ba7aca573aed6c676faae8">USE_LIBTOOLS</a></div><div class="ttdeci">USE_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00007">log.cpp:7</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9a8f6fe15bfe15104da6d1b360194a5400"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a></div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00014">logdef.h:14</a></div></div>
<div class="ttc" id="aclass_logs_html_a6227976848fb64144ff93587479df43d"><div class="ttname"><a href="class_logs.html#a6227976848fb64144ff93587479df43d">Logs::~Logs</a></div><div class="ttdeci">~Logs()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00031">log.cpp:31</a></div></div>
<div class="ttc" id="aclass_logs_html_a1e358b73feb2b3fcf014ef4a5581dbcb"><div class="ttname"><a href="class_logs.html#a1e358b73feb2b3fcf014ef4a5581dbcb">Logs::GetLevelStr</a></div><div class="ttdeci">CPLOGSTR GetLevelStr(int iLevel)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00116">log.cpp:116</a></div></div>
<div class="ttc" id="alog_8h_html_a6b5028642a5cef8d6f66086caa6f7933"><div class="ttname"><a href="log_8h.html#a6b5028642a5cef8d6f66086caa6f7933">STRCAT</a></div><div class="ttdeci">#define STRCAT</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00056">log.h:56</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9ab9f002c6ffbfd511da8090213227454e"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a></div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00012">logdef.h:12</a></div></div>
<div class="ttc" id="alog_8h_html_a13f4eb5ea5f2c6596fc35c2fa5832640"><div class="ttname"><a href="log_8h.html#a13f4eb5ea5f2c6596fc35c2fa5832640">SSTR</a></div><div class="ttdeci">#define SSTR</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00057">log.h:57</a></div></div>
<div class="ttc" id="aclass_logs_html_a9f438b0a141d8f3ed2b179edbe900256"><div class="ttname"><a href="class_logs.html#a9f438b0a141d8f3ed2b179edbe900256">Logs::getCurPath</a></div><div class="ttdeci">CPLOGSTR getCurPath()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00050">log.cpp:50</a></div></div>
<div class="ttc" id="alogdef_8h_html_aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473"><div class="ttname"><a href="logdef_8h.html#aca1fd1d8935433e6ba2e3918214e07f9a230506cce5c68c3bac5a821c42ed3473">LOG_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="logdef_8h_source.html#l00015">logdef.h:15</a></div></div>
<div class="ttc" id="alog_8h_html_a981e56652da79411d62f65b03f317c3b"><div class="ttname"><a href="log_8h.html#a981e56652da79411d62f65b03f317c3b">GETDIR</a></div><div class="ttdeci">#define GETDIR</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00053">log.h:53</a></div></div>
<div class="ttc" id="alog_8h_html"><div class="ttname"><a href="log_8h.html">log.h</a></div></div>
<div class="ttc" id="alog_8h_html_a6348c8eb0d993def1abc48cf9cc6ffbf"><div class="ttname"><a href="log_8h.html#a6348c8eb0d993def1abc48cf9cc6ffbf">CCT</a></div><div class="ttdeci">#define CCT</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00029">log.h:29</a></div></div>
<div class="ttc" id="atools_8h_html_ab689500aaec0db066e3ac9483d3fe425"><div class="ttname"><a href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></div><div class="ttdeci">#define NullPtr</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00119">tools.h:119</a></div></div>
<div class="ttc" id="aclass_logs_html_afce19298fbcc8876234d17f90a630acd"><div class="ttname"><a href="class_logs.html#afce19298fbcc8876234d17f90a630acd">Logs::getCurTime</a></div><div class="ttdeci">CPLOGSTR getCurTime()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00103">log.cpp:103</a></div></div>
<div class="ttc" id="aclass_logs_html_af6becc124d9f7eef58cd28b6ad7be5d0"><div class="ttname"><a href="class_logs.html#af6becc124d9f7eef58cd28b6ad7be5d0">Logs::WriteLog</a></div><div class="ttdeci">int WriteLog(CPLOGSTR szMsg, int iSize, int iLogLevel)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00141">log.cpp:141</a></div></div>
<div class="ttc" id="aclass_logs_html_aa9bc102cb2fe409993ed07fd67c41b66"><div class="ttname"><a href="class_logs.html#aa9bc102cb2fe409993ed07fd67c41b66">Logs::_sTime</a></div><div class="ttdeci">LOGSTR _sTime[DIR_MAX]</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00104">log.h:104</a></div></div>
<div class="ttc" id="aclass_logs_html_a1011d177388f17d63028b0275825fb85"><div class="ttname"><a href="class_logs.html#a1011d177388f17d63028b0275825fb85">Logs::operator!</a></div><div class="ttdeci">bool operator!()</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00045">log.cpp:45</a></div></div>
<div class="ttc" id="aclass_logs_html_a4ef359cfa789abe022d24f1a9da49513"><div class="ttname"><a href="class_logs.html#a4ef359cfa789abe022d24f1a9da49513">Logs::Logs</a></div><div class="ttdeci">Logs(int iLevel, CPLOGSTR sPath)</div><div class="ttdef"><b>Definition:</b> <a href="log_8cpp_source.html#l00023">log.cpp:23</a></div></div>
<div class="ttc" id="alog_8h_html_a321a20f839f3d9ccd0db1dc865850dc7"><div class="ttname"><a href="log_8h.html#a321a20f839f3d9ccd0db1dc865850dc7">ACCESS</a></div><div class="ttdeci">#define ACCESS</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00055">log.h:55</a></div></div>
<div class="ttc" id="alog_8h_html_a72ce0c80d97a3c76239e560d51717951"><div class="ttname"><a href="log_8h.html#a72ce0c80d97a3c76239e560d51717951">OFILE</a></div><div class="ttdeci">#define OFILE</div><div class="ttdef"><b>Definition:</b> <a href="log_8h_source.html#l00049">log.h:49</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
